package xyz.bali16.module.advise.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import xyz.bali16.application.core.model.UserVo;

import java.io.Serializable;
import java.util.List;

/**
 * @author bali2 on 15/3/2023.
 * @version 1.0
 */
@Data
public class Advise implements Serializable {

    private static final long serialVersionUID = 5345747051657863617L;
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;
    private String nickname;
    private String parentId;

    private String toName;
    private String toId;
    private String content;
    @TableField(fill = FieldFill.INSERT)
    private String gmtCreated;
    @TableField(exist = false)
    List<Advise> childrens;
    @TableField(exist = false)
    Integer childrenCount;
}
